package com.ptswitch.material.service;

import java.util.List;

import com.ptswitch.material.model.material.Bom;

public interface BomService {
    public static final int Init_BomMaterials = 1 << 1;

    public Bom findById(String id, int init);

    public Bom findByCodeAndVersion(String code, String version);

    public void update(Bom oldModel, Bom newModel);

    public void saveEx(Bom model);

//	public List<Bom> findAll(boolean initialize);

    public void deleteAll();

    public Bom findById(String id);

    public void delete(Bom bom);

    public void save(Bom bom);
    
    public List<Bom> findAll();

    public List<Bom> findAll(long first,long size);

    public long countAll();
    
    public List<Bom> findLike(String like,long first,long size);
    
    public long countLike(String like);

}
